import { useSelector } from "react-redux";
import type { stateType } from "@/store/index";
import type { userInfoType } from "@/store/user";
export const useGetUserInfo: userInfoType = () => {
  const { nickname } = useSelector<stateType>(
    (state) => state.user,
  ) as userInfoType;
  return { nickname };
};
